package com.bestcem.xm.member.grpc.service.param.syncrule;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 批量更新同步规则
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/9/18
 */
@Getter
@Setter
public class BatchUpdateSyncRule {

    /**
     * 企业标识
     */
    @NotBlank(message = "企业标识不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "企业标识格式错误")
    private String orgId;

    /**
     * 联系人类型
     */
    @NotNull(message = "联系人类型不能为空")
    private Integer memberType;

    /**
     * 同步类型
     */
    @NotNull(message = "同步类型不能为空")
    private Integer syncType;

    /**
     * 同步类型
     */
    @NotNull(message = "微信同步类型不能为空")
    private Integer wechatSyncType;
}
